﻿//------------------------------------------------------------------------------
// <copyright file="HandlersToMethodNameElement.cs" company="CommerceServer.net, Inc">
//    (c) 2012 CommerceServer.net, Inc. and its affiliates. All rights reserved.
// </copyright>
// <summary></summary>
//------------------------------------------------------------------------------ 
namespace CommerceServerContrib.CodeGeneration.Configuration
{
    using System.Configuration;

    public class HandlersToMethodNameElement : ConfigurationElement
    {
        private const string NameAttributeName = "name";
        private const string MethodNameAttributeName = "methodName";

        [ConfigurationProperty(NameAttributeName, IsRequired = true)]
        public string Name
        {
            get { return (string)this[NameAttributeName]; }
            set { this[NameAttributeName] = value; }
        }

        [ConfigurationProperty(MethodNameAttributeName, IsRequired = true)]
        public string MethodName
        {
            get { return (string)this[MethodNameAttributeName]; }
            set { this[MethodNameAttributeName] = value; }
        }
    }
}
